﻿//      *********    NE PAS MODIFIER CE FICHIER     *********
//      Ce fichier est régénéré par un outil de création.Modifier
// .     ce fichier peut provoquer des erreurs.
namespace Expression.Blend.SampleData.SampleDataSource
{
	using System; 

// To significantly reduce the sample data footprint in your production application, you can set
// the DISABLE_SAMPLE_DATA conditional compilation constant and disable sample data at runtime.
#if DISABLE_SAMPLE_DATA
	internal class SampleDataSource { }
#else

	public class SampleDataSource : System.ComponentModel.INotifyPropertyChanged
	{
		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		protected virtual void OnPropertyChanged(string propertyName)
		{
			if (this.PropertyChanged != null)
			{
				this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
			}
		}

		public SampleDataSource()
		{
			try
			{
				System.Uri resourceUri = new System.Uri("/CPETwit.WPFClient;component/SampleData/SampleDataSource/SampleDataSource.xaml", System.UriKind.Relative);
				if (System.Windows.Application.GetResourceStream(resourceUri) != null)
				{
					System.Windows.Application.LoadComponent(this, resourceUri);
				}
			}
			catch (System.Exception)
			{
			}
		}

		private Users _Users = new Users();

		public Users Users
		{
			get
			{
				return this._Users;
			}
		}
	}

	public class UsersItem : System.ComponentModel.INotifyPropertyChanged
	{
		public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

		protected virtual void OnPropertyChanged(string propertyName)
		{
			if (this.PropertyChanged != null)
			{
				this.PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
			}
		}

		private System.Windows.Media.ImageSource _avatar = null;

		public System.Windows.Media.ImageSource avatar
		{
			get
			{
				return this._avatar;
			}

			set
			{
				if (this._avatar != value)
				{
					this._avatar = value;
					this.OnPropertyChanged("avatar");
				}
			}
		}

		private string _login = string.Empty;

		public string login
		{
			get
			{
				return this._login;
			}

			set
			{
				if (this._login != value)
				{
					this._login = value;
					this.OnPropertyChanged("login");
				}
			}
		}

		private string _name = string.Empty;

		public string name
		{
			get
			{
				return this._name;
			}

			set
			{
				if (this._name != value)
				{
					this._name = value;
					this.OnPropertyChanged("name");
				}
			}
		}

		private string _description = string.Empty;

		public string description
		{
			get
			{
				return this._description;
			}

			set
			{
				if (this._description != value)
				{
					this._description = value;
					this.OnPropertyChanged("description");
				}
			}
		}

		private string _email = string.Empty;

		public string email
		{
			get
			{
				return this._email;
			}

			set
			{
				if (this._email != value)
				{
					this._email = value;
					this.OnPropertyChanged("email");
				}
			}
		}

		private double _FollowersCount = 0;

		public double FollowersCount
		{
			get
			{
				return this._FollowersCount;
			}

			set
			{
				if (this._FollowersCount != value)
				{
					this._FollowersCount = value;
					this.OnPropertyChanged("FollowersCount");
				}
			}
		}

		private double _TweetsCount = 0;

		public double TweetsCount
		{
			get
			{
				return this._TweetsCount;
			}

			set
			{
				if (this._TweetsCount != value)
				{
					this._TweetsCount = value;
					this.OnPropertyChanged("TweetsCount");
				}
			}
		}

		private double _PublishersCount = 0;

		public double PublishersCount
		{
			get
			{
				return this._PublishersCount;
			}

			set
			{
				if (this._PublishersCount != value)
				{
					this._PublishersCount = value;
					this.OnPropertyChanged("PublishersCount");
				}
			}
		}
	}

	public class Users : System.Collections.ObjectModel.ObservableCollection<UsersItem>
	{ 
	}
#endif
}
